package com.yaxin.outsourcing.mapper;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yaxin.common.annotation.DataColumn;
import com.yaxin.common.annotation.DataPermission;
import com.yaxin.outsourcing.domain.po.AccessApplication;
import com.yaxin.outsourcing.domain.po.OutsourcingPerson;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * <p>
 * 外协人员信息表 Mapper 接口
 * </p>
 *
 * @author zcc
 * @since 2025-07-29
 */
@Mapper
public interface OutsourcingPersonMapper extends BaseMapper<OutsourcingPerson> {
    @DataPermission({
        @DataColumn(key = "deptName", value = "d.dept_id"),
        @DataColumn(key = "userName", value = "u.user_id")
    })
    Page<OutsourcingPerson> selectPageOutSourcingPersonList(@Param("page") Page<OutsourcingPerson> page, @Param(Constants.WRAPPER) Wrapper<OutsourcingPerson> queryWrapper);
}
